import json
data = {
	"title": "1-1",
	"background": "1-1.png",
	"providelevel": 2,
	"rewards": {
		"exp": 1,
		"crystal": 1,
		"coin": 10
	},
	"monster":[
		{"id": "099", "x": 1500, "y": 400},
		{"id": "099", "x": 2000, "y": 350},
		{"id": "099", "x": 2000, "y": 450},
		{"id": "099", "x": 2500, "y": 350},
		{"id": "099", "x": 2500, "y": 400},
		{"id": "098", "x": 2500, "y": 450}	
	]
}
for i in range(1,11):
    for j in range(1,6):
       with open(str(i) + "-" + str(j) + ".json", 'w', encoding = 'utf-8') as f:
            print(str(i) + "-" + str(j) + ".json")
            data["title"] = str(i) + "-" + str(j)
            data["background"] = str(i) + "-" + str(j) + ".png"
            data["providelevel"] = (i - 1) * 10 + 2 * j
            data["rewards"]["exp"] = 2 ** i * j
            data["rewards"]["crystal"] = 2 ** i * j
            data["rewards"]["coin"] = 2 ** i * j * 10
            json.dump(data, f, indent = 4)
            f.close

        
